CLIP%
CLIP$

Syntax: CLIP% (#channel)
   and: CLIP$ (#channel)
Location: CLIP (DIY Toolkit - Vol S)

These functions can be used to read characters from the QL's screen.

In order for the functions to work, you will need to OPEN a window over that part of the QL's screen which you wish to read and ensure that it is in the correctMODE and has UNDER, CSIZE and CHAR_INC set to the same values as were used to create that part of the screen.  You will also need to ensure that the same font is being used by the window which you have OPENed.

The functions will then try to read a character from the current cursor position.  They can be used to read any character in the range 0...255 (except CHR$(10) which does not appear on screen).

CLIP% returns the character code.
CLIP$ returns the actual character.

CROSS-REFERENCE:
CHAR_USE allows you to set the font used by a window.
